/**
 * 
 */
package pt.mleiria.dao.playground;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

import pt.mleiria.dao.UserDao;

/**
 * @author manuel
 *
 */
@Entity
@Table(name="tabuadascore")
public class TabuadaScoreDao implements Serializable{
	
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	private int id;
	
	@Column(name="scoretime")
	private int scoretime;
	@Column(name="score")
	private int score;
	@Column(name="totalquestions")
	private int totalQuestions;
	@ManyToOne
	@JoinColumn(name="user_id")
	private UserDao userdao;
	@Column(name="ts")
	private Date currentDate;
	
	
	public Date getCurrentDate() {
		return currentDate;
	}
	public void setCurrentDate(Date currentDate) {
		this.currentDate = currentDate;
	}
	public int getTotalQuestions() {
		return totalQuestions;
	}
	public void setTotalQuestions(int totalQuestions) {
		this.totalQuestions = totalQuestions;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public int getScoretime() {
		return scoretime;
	}
	public UserDao getUserdao() {
		return userdao;
	}
	public void setUserdao(UserDao userdao) {
		this.userdao = userdao;
	}
	public void setScoretime(int scoretime) {
		this.scoretime = scoretime;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
}
